
import { dataAxios } from '../rudexRou/request.js'
import { message } from 'antd'
// 查询考试进度
export function getExamProgress (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/examDetailManager/examProgress`,
    method: 'get',
    params: param
  })
}

// 查询阅卷进度
export function getMarkingProgress (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/examDetailManager/markingProgress`,
    method: 'get',
    params: param
  })
}

// 查询阅卷进度
export function examQueryPage (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/examDetailManager/examDetail`,
    method: 'post',
    data: param
  })
}

// 查询待阅卷人员
export function markQueryPage (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/examDetailManager/markingDetail`,
    method: 'post',
    data: param
  })
}

// 查询阅卷进度
export function markingQueryPage (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/examDetail`,
    method: 'post',
    data: param
  })
}

// 发布成绩
export function publishStatus (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/examDetailManager/publishStatus`,
    method: 'patch',
    params: param
  })
}

// 查询待阅卷考试列表
export function myMarkingPage (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/queryPage`,
    method: 'post',
    data: param
  })
}
// 查询待阅卷考试列表
export function queryMarkingPaper (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/markingPaper`,
    method: 'get',
    params: param
  })
}

// 查询待阅卷考试列表
export function updateAnswerScore (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/marking`,
    method: 'get',
    params: param
  })
}

// 查询待阅卷考试列表
export function saveMarking (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/saveMarking`,
    method: 'post',
    data: param
  })
}

// 新增考试答案记录
export function addMarking (param) {
  return dataAxios({
    url: `/tmfsExamPlatform/myMarking/addMarking`,
    method: 'post',
    data: param
  })
}
